package com.yisu.auction.api.core.service;

import com.yisu.auction.api.domain.request.prizePackage.PrizeDetailRequest;
import com.yisu.auction.api.domain.vo.goodsInfoPackageVos.ClosingBidRecordVo;
import com.yisu.auction.api.domain.vo.goodsInfoPackageVos.OfferPriceVo;
import com.yisu.auction.ewf.entity.OfferPriceLog;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * author: 赵杰
 * Business Description：出价流水表相关业务接口
 * createTime：2017/8/17
 */
public interface IOfferPriceLogService {
    /**
     * author: 赵杰
     * Business Description：通过会员memberId和prizeId 获取用户出价总额
     * @param prizeDetailRequest 含会员 ID   prizeId
     * @return
     */
    BigDecimal getUserOfferPriceByPrizeId(PrizeDetailRequest prizeDetailRequest);


    /**
     * author: 赵杰
     * Business Description：通过prizeId获取此拍品出价流水
     * @param prizeDetailRequest 含prizeId
     * @return
     */
    List<OfferPriceVo> getOfferPriceLogListByPrizeId(PrizeDetailRequest prizeDetailRequest);

    /**
     * author: 赵杰
     * Business Description：通过prizeId最后出价记录
     * @param prizeId
     * @return
     */
    ClosingBidRecordVo getClosingBidRecordByPrizeId(long prizeId);

    /**
     * 获取数据库时间-为所有倒计时服务
     * @return
     */
    Date getDbDate();
}
